package com.oo.polymorphic_4.computer;

/**
 * Desktop--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 17:05
 **/
public class Desktop extends Computer {
    private String hostType;

    public Desktop() {
    }

    public Desktop(String name, String brand, String type, String monitor, String hostType) {
        super(name, brand, type, monitor);
        this.hostType = hostType;
    }

    @Override
    public void info() {
        System.out.println("详细清单（台式机）\n名称：" +
                this.getName() + "\n品牌：" + this.getBrand()
                + "\n处理器类型：" + this.getType()
                + "\n显示器：" + this.getMonitor()
                + "\n机箱类型：" + this.getHostType());
    }

    public String getHostType() {
        return hostType;
    }

    public void setHostType(String hostType) {
        this.hostType = hostType;
    }
}
